<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 */
class ExamDetail extends AppModel
{
    //

    public function examSecondLevel(){
        return $this->belongsTo(ExamSecondLevel::class,'exam_second_level_id');
    }


    public function exam(){
        return $this->belongsTo(Exam::class,'exam_id');
    }

    public function auditExamFile(){
        return $this->hasOne(AuditExamFile::class,'exam_detail_id');
    }

    public function specialFile(){
        return $this->hasMany(SpecialAuditExamFile::class,'exam_detail_id');
    }
}
